import request from '@/utils/request.js'

// 查询存储员工信息的列表
export function listEmployees(query) {
    return request({
        url: '/system/employees/list',
        method: 'get',
        params: query
    })
}

// 查询存储员工信息的详细
export function getEmployees(id) {
    return request({
        url: '/system/employees/' + id,
        method: 'get'
    })
}

// 新增存储员工信息的
export function addEmployees(data) {
    return request({
        url: '/system/employees',
        method: 'post',
        data: data
    })
}

// 修改存储员工信息的
export function updateEmployees(data) {
    return request({
        url: '/system/employees',
        method: 'put',
        data: data
    })
}

// 删除存储员工信息的
export function delEmployees(id) {
    return request({
        url: '/system/employees/' + id,
        method: 'delete'
    })
}
